<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>
<div class="nybanner">
    <img src="<?php echo IMG_PATH;?>nybanner.jpg">
</div>
<div class="topmenu-box">
    <div class="common-width">
        <div class="topmenu">
            <div class="topmenu-l">
                <ul>
                    <li class="gaoliang"><a href="javascript:;"><?php echo $catname;?></a></li>
                </ul>
            </div>
            <div class="topmenu-r">
                <span>当前位置：</span><a href="<?php echo siteurl($siteid);?>" title="">首页</a> <i> - </i> <a href="javascript:;"><?php echo $catname;?></a>
            </div>
        </div>
    </div>
</div>
<div class="chanpin-box">
    <div class="common-width">
        <div class="chanpin wow fadeInUp">
            <ul>
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=3d29d9f428cb371a6f13c6fb88386f3d&sql=select+%2A+from+picture+where+catid%3D%24catid&num=6&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$pagesize = 6;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$r = $get_db->sql_query("SELECT COUNT(*) as count FROM (select * from picture where catid=$catid) T");$s = $get_db->fetch_next();$pages=pages($s['count'], $page, $pagesize, $urlrule);$r = $get_db->sql_query("select * from picture where catid=$catid LIMIT $offset,$pagesize");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                <?php $n=1;if(is_array($data)) foreach($data AS $p) { ?>
                <li>
                    <a href="<?php echo $p['url'];?>" title="">
                        <div class="main_img">
                            <img src="<?php echo $p['thumb'];?>">
                            <div class="show">
                                 <span class="imgArea">
                                 <img src="<?php echo IMG_PATH;?>icon_more.png">
                                 </span>
                            </div>
                        </div>
                        <div class="main_txt"><strong><?php echo $p['title'];?></strong>
                        </div>
                    </a>
                </li>
                <?php $n++;}unset($n); ?>

                <div class="clear"></div>
            </ul>
        </div>
        <div class="page" id="pages">
            <div class="box"><?php echo $pages;?></div>
        </div>
    </div>
</div>
<?php include template("content","footer"); ?>